$.ajax({
        url: "../static/data/hufup.json",
        type: "get",
        datatype: "json"
    })

    .then(function (res) {
        // console.log(res[0]);
        // console.log($(".goods-list"));
        var html = "";
        for (var i = 0; i < 120; i++) {
            html +=
                `
            <div class="goods">
            <img src="${res[i].src}" alt="" class="lazy-load" data-src="${res[i].src}">
            <p class="title">${res[i].title}</p>
            <p class="price-box">
                <span class="price">
                    ${res[i].price}
                </span>
            </p>
            <div class="car">
            <i></i>
            加入购物车
            </div>
            </div>
            
        `
        }
        // new LazyLoad("img.lazy-load");
        $(".item-bg").html(html)
        // console.log(res);

    })

    $(function(){
        console.log(11);
        // console.log($(this));
        $(".item-bg .goods").mouseenter(function(){
            console.log(22);
            // console.log($(this));
            $(this).css("background","green")
        })
    })